package com.bailiban.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author zhulang
 * @Classname Consumer2
 * @Description Consumer2
 */
@Component
@RabbitListener(queues = "hopu")
public class Consumer3 {
    @RabbitHandler
    public void getMsg(String msg) {
        System.out.println("Consumer3消费hopu队列消息；" + msg);
    }
}
